package com.qhhc.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CarAppointmentVo {
    private Long id;
    private Long userId;
    private Long carId;
    private Long dealerId;
    private String status;

    private String note;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date appointmentTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    @Override
    public String toString() {
        return "CarAppointmentDTo{" +
                "id=" + id +
                ", userId=" + userId +
                ", carId=" + carId +
                ", dealerId=" + dealerId +
                ", appointmentTime=" + appointmentTime +
                ", status='" + status + '\'' +
                ", notee='" + note + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

}